export default {
  name: 'getParkPayMerchantInfo',

  data () {
    return {
      merchantInfo: {}
    }
  },

  mounted() {
    this.getParkPayMerchantInfo()
  },

  methods: {
    getParkPayMerchantInfo () {
      let self = this
      let params = {
        merchantId: this.$route.query.merchantId
      }

      API.fetchGet('/valueAdded/getParkPayMerchantInfo', params)
        .then(data => {
          // console.log(data)
          self.merchantInfo = data
        }, err => {
          self.showToast('账号资料获取失败！', 2, 1500)
        })
    }
  }
}
